﻿#pragma once

#include "Render/PreRender/PreRenderWidgets.h"

class CVulkanWindow;

class CVulkanRectWidget
{
public:
    void BindData(SPreRenderRectWidget Data);
   
    void Draw(vk::CommandBuffer CommandBuffer);

protected:
    SPreRenderRectWidget RectData;

};

//绘制所有的矩形控件
class CVulkanRectWidgets
{
public:
    ~CVulkanRectWidgets();  

    void PreProcess(const TVector<SPreRenderRectWidget>& AllRectData);

    void CreateSelfRecordTasks(CVulkanWindow *InRenderSurface
        ,SRenderCommandBuffers &OutCmdBuffersToExecute);
protected:

    TVector<CVulkanRectWidget> RectWidgets;

    vk::CommandBuffer CommandBuffer;

};
